package minicad;
import java.awt.*;
import javax.swing.*;

class Viewer {
    JPanel panel;
    Viewer(JPanel panel) {
        this.panel = panel;
    }
    void flush()
    {
        Graphics g = panel.getGraphics();
        g.setColor(Color.WHITE);
        g.fillRect(0, 0, panel.getWidth(), panel.getHeight());
    }
}
